package com.gemini.main.common.bean;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class Result {
    private int code;
    private String msg;
    private String jwtToken;
    private Object data;  // data为object类

    public Result setCode(ResultCode resultCode) {
        this.code = resultCode.code;
        return this;
    }



    public Result() {
    }

    public Result(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
